Sorted Range Reporting
نویسندگان
چکیده
We consider a variant of the orthogonal range reporting problem when all points should be reported in the sorted order of their x-coordinates. We show that reporting two-dimensional points with this additional condition can be organized (almost) as efficiently as the standard range reporting. Moreover, our results generalize and improve the previously known results for the orthogonal range successor problem and can be used to obtain better solutions for some stringology problems.
منابع مشابه
Sorted Range Reporting Revisited
We consider the two-dimensional sorted range reporting problem. Our data structure requires O(n lg lgn) words of space and O(lg lg n+ k lg lg n) query time, where k is the number of points in the query range. This data structure improves a recent result of Nekrich and Navarro [8] by a factor of O(lg lgn) in query time, and matches the state of the art for unsorted range reporting [1].
متن کاملOnline Sorted Range Reporting
We study the following one-dimensional range reporting problem: On an array A of n elements, support queries that given two indices i ≤ j and an integer k report the k smallest elements in the subarray A[i..j] in sorted order. We present a data structure in the RAM model supporting such queries in optimal O(k) time. The structure uses O(n) words of space and can be constructed in O(n log n) tim...
متن کاملOrder-Sorted Polymorphism in Isabelle
ML-style polymorphism can be generalized from a single-sorted algebra of types to an order-sorted one by adding a partially ordered layer of “sorts” on top of the types. Type inference proceeds as in the Hindley/Milner system, except that order-sorted unification of types is used. The resulting system has been implemented in Isabelle to permit type variables to range over user-definable subsets...
متن کاملStudy of Optimal Replacement of Thyroxine in the ElDerly (SORTED): protocol for a mixed methods feasibility study to assess the clinical utility of lower dose thyroxine in elderly hypothyroid patients: study protocol for a randomized controlled trial
BACKGROUND The population of the UK is ageing. There is compelling evidence that thyroid stimulating hormone distribution levels increase with age. Currently, in UK clinical practice elderly hypothyroid patients are treated with levothyroxine to lower their thyroid stimulating hormone levels to a standard non-age-related range. Evidence suggests that mortality is negatively associated with thyr...
متن کاملSorted Unification Using Set Constraints
This paper describes a new representation for sortal constraints and a uniication algorithm for the corresponding constrained terms. Variables range over sets of terms described by systems of set constraints that can express limited inter-variable dependencies. These sets of terms are more general than regular tree languages, but are still closed under intersection. The new uniication algorithm...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012